


//
//  EmoticonViewFlowLayout.swift
//  HotNews
//
//  Created by YYY on 2017/11/13.
//  Copyright © 2017年 成品家（北京）网路科技有限公司. All rights reserved.
//

import UIKit

class EmoticonViewFlowLayout: UICollectionViewFlowLayout {

    override func prepare() {
        super.prepare()
        //设置滚动方向
        guard let collectionView = collectionView else
        {
            return
        }
        scrollDirection = .horizontal
        itemSize = collectionView.bounds.size
        minimumLineSpacing = 0
        minimumInteritemSpacing = 0
//        sectionInset = UIEdgeInsetsMake(0, 0, 0, 0)
    }
}
